package cn.zk.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.amqp.rabbit.support.CorrelationData;

/**
 * 生成者发送给交换机的回调函数
 */
@Slf4j
public class MyConfirmCallback implements RabbitTemplate.ConfirmCallback{
    @Override
    public void confirm(CorrelationData correlationData, boolean b, String s) {
        log.info("生成者发送给交换机的回调函数:correlationData={},b={},s={}",correlationData,b,s);
    }
}
